#app {
  .main-container {
    min-height: 100%;
    // background-color: #EFF7FF;
    background: url('../image/home-bg.png') no-repeat;
    background-size: 100% 100%;
    transition: margin-left 0.28s;
    margin-left: $sideBarWidth;
    position: relative;
    padding-top: 120px;
  }

  .sidebar-container {
    transition: width 0.28s;
    width: $sideBarWidth !important;
    background-color: $menuBg;
    height: calc(100% - 88px);
    position: fixed;
    font-size: 0px;
    top: 110px;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;
    // box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 0 3px 0 rgba(0, 0, 0, 0.04);
    box-shadow: 0px 6px 10px 0px rgba(66, 94, 136, 0.1);
    // border-radius: 10px;

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out,
        0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
      padding-bottom: 90px;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: 100%;
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 6px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }
    .el-menu-item,
    .el-submenu__title {
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      display: flex;
      align-items: center;
    }

    // menu hover
    .submenu-title-noDropdown,
    .el-submenu__title {
      &:hover {
        background-color: $menuHover !important;
      }
    }

    .is-active > .el-submenu__title {
      // color: $subMenuActiveText !important;  // 修改
      color: $subMenuActiveText;
    }

    & .nest-menu .el-submenu > .el-submenu__title,
    & .el-submenu .el-menu-item {
      min-width: $sideBarWidth !important;
      // background-color: $subMenuBg !important; // 修改
      background-color: $subMenuBg;

      &:hover {
        background-color: $subMenuHover !important;
      }
    }
  }
  // .el-submenu>.el-submenu__title{
  //   padding: 0 10px !important;
  //   // padding: 0 20px 0 20px !important;
  // }
  // .el-submenu>.el-menu>.nest-menu{
  //   padding-left: 10px !important;
  // }

  .hideSidebar {
    .sidebar-container {
      width: 54px !important;
    }

    .main-container {
      margin-left: 54px;
    }

    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 16px;
        }
      }
    }

    .el-submenu {
      overflow: hidden;

      & > .el-submenu__title {
        padding: 0 !important;

        .svg-icon {
          margin-left: 16px;
        }

        .el-submenu__icon-arrow {
          display: none;
          right: 15px;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        & > .el-submenu__title {
          & > span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $sideBarWidth !important;
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform 0.28s;
      width: $sideBarWidth !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-$sideBarWidth, 0, 0);
      }
    }
  }

  .withoutAnimation {
    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  & > .el-menu {
    .svg-icon {
      margin-right: 6px;
    }
  }

  .nest-menu .el-submenu > .el-submenu__title,
  .el-menu-item {
    &:hover {
      // you can use $subMenuHover
      background-color: $menuHover !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  > .el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}

/* 修改样式 */
// 第一级字体
.el-menu-item,
.el-submenu__title {
  font-size: 16px;
  font-weight: 600;
  height: 40px !important;
  line-height: 40px !important;
}
// 第二菜单项目字体
.el-submenu {
  .el-submenu {
    .el-submenu__title {
      font-size: 14px;
      font-weight: normal;
    }
  }
}
// 第二级字体
.el-submenu {
  .el-menu-item {
    font-size: 14px;
    font-weight: normal;
  }
}

// 高亮
.el-menu .el-menu-item,.el-submenu__title{
  // background-color: #a4c5f8 !important;
}
.el-menu .el-menu-item.is-active {
  background-color: #2E6ECD !important;
}
.el-submenu.is-active {
  background-color: #E8EFFF !important;
  .el-submenu__title {
    // background-color: #2E6ECD !important;
    // color: #fff !important;
  }
  .el-menu-item.is-active {
    background-color: #E8EFFF !important;
    color: #5786CA !important;
  }
  /* .el-submenu {
    &.is-active {
      .el-submenu__title {
        color: #5786CA !important;
        // background-color: #2E6ECD !important;
      }
      .el-menu-item.is-active {
        // background-color: #2E6ECD !important;
      }
    }
    .el-submenu__title {
      // background-color: #f5f8ff !important;
      // color: $subMenuActiveText !important; // 修改
    }
    .el-menu-item {
      // background-color: #f5f8ff !important;
    }
  } */
}
// 第一级目录高亮
.el-menu>div>a>.el-menu-item.submenu-title-noDropdown,
.el-scrollbar__view>.el-menu:first-of-type>div>.el-submenu:first-of-type>.el-submenu__title:first-of-type{
  background-color: #a4c5f8 !important;
  color: #2E6ECD !important;
}
.el-menu>div>a>.el-menu-item.submenu-title-noDropdown.is-active,
.el-scrollbar__view>.el-menu:first-of-type>div>.el-submenu:first-of-type.is-active>.el-submenu__title:first-of-type{
  background-color: #2E6ECD !important;
  color: #fff !important;
}
.el-menu div{
  margin-bottom: 5px;
}
.el-submenu__title i{
  color: #3F8CFF !important;
}
.el-menu>div>a>.el-menu-item.submenu-title-noDropdown.is-active,
.el-scrollbar__view>.el-menu:first-of-type>div>.el-submenu:first-of-type.is-active>.el-submenu__title:first-of-type i{
  color: #fff !important;
}